/**
 * 
 */

function cacl(){
	var txt1 = document.getElementById('txt1');
	var txt2 = document.getElementById('txt2');
	var txt3 = document.getElementById('txt3');
	
	var total = Number(txt1.value) + Number(txt2.value);
	
	txt3.setAttribute("value", total);
}